<template>
    <el-card shadow="never">
        <template #header>
            <div class="flex justify-between">
                <span class="text-sm">{{ title }}</span>
                <el-tag type='danger' effect="plain">{{ tip }}</el-tag>
            </div>
        </template>
        <el-row :gutter="20">
            <el-col v-for="(item,index) in btns" :key="index" :span="6" :offset="0">
                <el-card shadow="hover" class="border-0 bg-light-400">
                    <div class="flex flex-col items-center jutify-center">
                        <span class="text-xl mb-2">{{ item.value }}</span>
                        <span class="text-gray-500">{{ item.label }}</span>
                    </div>
                </el-card>
            </el-col>
        </el-row>
        
    </el-card>
    
</template>

<script setup>
// 接收从父组件传过来的消息
const props = defineProps({
    title:{
        type:String,
        default:""
    },
    tip:{
        type:String,
        default:""
    },
    btns:{
        type:Array,
        default:[]

    }
})
</script>
